home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
comms
/
other
/
amigancp_20
/
docs
/
amigancp.doc
next >
Wrap
Text File
|
1999-05-17
|
60KB
|
1,903 lines
AmigaNCP
********
Welcome to the
AmigaNCP
package, the AmigaOS implementation of
Psion's NCP network protocol.
Copyright
*********
The AmigaNCP package has been written by
Oliver Wagner
Landsberge 5
D-45549 Sprockhövel
Germany
email: owagner@vapor.com
The AmigaNCP driver library, the AmigaNCP File Server, the AmigaNCP
File System, the AmigaNCP Documentation and all associated files are
copyright (C) 1993-1999 Oliver Wagner, All Rights Reserved.
Psion
, the Psion Logo,
Psion Series 3
,
3-Link
,
Psion HC
,
Psion MC
,
SSD
and
Solid State Disk
are registered Trademarks of
Psion PLC.
The author wishes to thank the following people for their help during
AmigaNCP development:
Frank "cyfm" Mariak
Neil Bothwick
Kenneth Jennings
the members of the AmigaNCP Mailing List
For their help in implementing and debugging the EPOC32 protocol
part
David Wood of Psion Ltd.
Who provided the necessary information about the NCP protocol and
helped with beta testing the package
Jeremy "Jezar" Wakefield of Psion Ltd.
Who helped to track down several hidden and esoteric bugs.
Eric (ed@ramses.fdn.org)
For providing the original french catalog translation.
Phil Trickett (phil@dcs.king.ac.uk)
For the additional icon images.
Introduction
************
Overview
========
Psion's fine palmtop computer series, namely the
S3
and
S5
, contain
an even finer operating system, whose neat features cover a full
fledged peer-to-peer networking software using a protocol called
NCP
.
Using NCP, you can link together two Psion computers or a Psion and a
different, perhaps stationary machine and happily exchange data on your
behalf. NCP services include, but are not limited to, accessing files
on the remote machines as if they were on yours, in both directions.
Linking your palmtop to your stationary machine is generally quite a
good idea. Doing so via the NCP protocol requires your stationary
machine to have an implemention of this protocol. There have only been
implementations for MS-DOS clones (the
MCLINK.EXE
shell), for Apple
MacIntosh and for Acorn Archimedes - until now.
AmigaNCP features a full NCP implementation including a remote file
server to access Amiga files from your Psion and a file system to access
Psion files from your Amiga. The package also offers an API to allow
custom applications to directly access network services at the NCP
level.
Parts of AmigaNCP
=================
AmigaNCP actually consists of several different programs.
The main part is the
amigancp.library
. It contains the basic network
services for exchanging data between two machines via a serial
connection. The protocol provides up to 8 data channels, which can be
either passive (awaiting a connection from a client process) or active
(attempting to connect to a server process). One of the channels is
reserved for the network supervisor application
LINK
. The LINK
functionality also has been integrated into
amigancp.library
.
Besides network I/O functions, the library also provides several
utility functions to deal with Psion text format and the Intel byte
ordering.
The
AmigaNCP-FileSystem
uses the
amigancp.library
to connect to
the file server running on your Psion in order to provide access to
Psion files from the AmigaDOS environment. It provides a new AmigaDOS
device named
NCP:
which offers access to all available Psion devices.
The Psion devices will be mounted as subdirectories in the
NCP:
window.
The
AmigaNCP-FileServer
is an application built on top of
amigancp.library
. It provides a means of accessing AmigaDOS
files from the remote Psion computer via the
REM::
file system. This
allows you to access Amiga files just as if they were local Psion
files. With the Psion S3a, it allows you to use the
Backup
option to
backup vital data files on your Amiga's harddisk.
The
AmigaNCP-Monitor
monitors the activity of the NCP supervisor and
gives detailed statistics about all channels. This is an invaluable
aid for debugging NCP applications.
The
AmigaNCP-PrintServer
allows you to print from your S3 or S5
directly to a printer connected to the Amiga.
The
S3Run
program remotely launches programs or applications on your
Psion.
Using AmigaNCP
**************
Installation
============
For using AmigaNCP you'll need...
1. any Amiga equipped with OS 2.04 or better and a free serial port
2. the IBM-PC version of the 3-Link serial cable
3. and a Psion S3, S3a, S3c or S5 (or any other model featuring
Remote Link)(1).
To support Amiga systems without a hard disk, the AmigaNCP distribution
has been organized to be ready-to-use.
Hard disk installation of AmigaNCP is best done using the provided
Installer script. The script will (by default) copy
amigancp.library
to
LIBS:
, put the language catalogs into
LOCALE:Catalogs/
and create an
AmigaNCP
drawer on your work
partition. The drawer will contain the network services, documentation
and the NCP tools. There's an additional option for installing the
amigancp.library
developer material.
When installing the package for the first time, the installation
procedure will ask you about the Psion model you're going to connect
to. The serial line speed will be set to the model's maximum (that is
9600 baud for the S3 or HC and 19200 baud for S3a or MC). You may
change the serial parameters later on, though.
Configuring
amigancp.library
============================
The default serial configuration is to use the
serial.device
, unit 0,
at 9600 baud(2).
You can overwrite these default parameters by setting or changing the
environment variable
AmigaNCP.config
. The environment variable will
be read by the
amigancp.library
each time a serial connection has to
be established.
The parameter parsing is done just like in a shell command line; the
template is
D=DEVICE/K, U=UNIT/K/N, B=BAUD/K/N, NOREQ/S, SERIES5/S
.
All parameters are optional, those not given will retain their default
values.
An example: To make AmigaNCP use
duart.device
, unit 1 at 19200 baud
you have to set
ENV:AmigaNCP.config
to
DEVICE=duart.device UNIT=1 BAUD=19200
The installation script will create both
ENV:AmigaNCP.config
and
ENVARC:AmigaNCP.config
with either
DEVICE=serial.device UNIT=0 BAUD=9600
or
DEVICE=serial.device UNIT=0 BAUD=19200
depending on your choice of Psion model. Please note, that you may
actually use
any
baud rate supported by the serial port in question
(and of course supported by the other side's serial interface as well).
If you set the
NOREQ
switch, the library will not display any error
requesters.
Setting
SERIES5
will enable the EPOC32 protocol support for the
Series 5 models.
Note that you have to configure the remote site as well. On the Psion
S3 or S3a this consists of turning on NCP via the
Remote Link
menu of
the system screen. The baud rate must of course be set to the same
value as used in
ENV:NCP.config
, or to 9600 if no configuration file
exists.
Starting AmigaNCP
=================
You don't start
amigancp.library
directly. Instead you start one or
more of the AmigaNCP applications, which in turn will open the library
and try to establish their connections to the remote NCP site.
The library automatically terminates a connection about 10 seconds
after the last application has closed its network channels.
Note that the underlying serial device is free to be used by any other
application as long as no NCP connection is active and no connection
attempt is made.
NCP Requesters
==============
The
amigancp.library
will put up error requesters if the network link
breaks (and the
NOREQ
switch hasn't been set, see above). The
following table shows possible error condi